package binary;

public class HexDemo {
    public static void main(String[] args) {
        int n=0x231ea;//16进制
        int m=0b1100_0100_1001;
        int c=023;//以0开头,表示8进制
        System.out.println("十六进制"+Integer.toHexString(n));//按照16进制输出
        System.out.println("二进制"+Integer.toBinaryString(m));
        System.out.println("十进制"+m);
        System.out.println("十进制"+n);
    }
}
